import request from '@/utils/request'

export default {
  listByParentId(parentId) {
    return request({
      url: `/service/admin/dict/listByParentId/${parentId}`,
      method: 'get'
    })
  },

  getTree() {
    return request({
      url: `/service/admin/dict/tree`,
      method: 'get'
    })
  }
}
